/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.entities;

import com.ntb.models.LandStatusDAO;
import com.ntb.models.impl.LandStatusDAOImpl;
import java.sql.Date;
import java.sql.Timestamp;

/**
 *
 * @author DATBP
 */
public class Lands {

    private int landID;
    private int planID;
    private String planName;
    private int locationID;
    private String locationName;
    private String address;
    private int purchasedCost;
    private Date purchasedDate;
    private int presentCost;
    private String nearByLandMarks;
    private int landArea;
    private String statusCode;
    private String statusName;
    private Timestamp statusChangedDate;
    private int buildingPermitID;
    private int occupancyPermitID;

    public Lands() {
    }

    public Lands(int landID, int planID, String planName, int locationID, String locationName, String address, int purchasedCost, Date purchasedDate, int presentCost, String nearByLandMarks, int landArea, String statusCode, String statusName, Timestamp statusChangedDate, int buildingPermitID, int occupancyPermitID) {
        this.landID = landID;
        this.planID = planID;
        this.planName = planName;
        this.locationID = locationID;
        this.locationName = locationName;
        this.address = address;
        this.purchasedCost = purchasedCost;
        this.purchasedDate = purchasedDate;
        this.presentCost = presentCost;
        this.nearByLandMarks = nearByLandMarks;
        this.landArea = landArea;
        this.statusCode = statusCode;
        this.statusName = statusName;
        this.statusChangedDate = statusChangedDate;
        this.buildingPermitID = buildingPermitID;
        this.occupancyPermitID = occupancyPermitID;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getBuildingPermitID() {
        return buildingPermitID;
    }

    public void setBuildingPermitID(int buildingPermitID) {
        this.buildingPermitID = buildingPermitID;
    }

    public int getLandArea() {
        return landArea;
    }

    public void setLandArea(int landArea) {
        this.landArea = landArea;
    }

    public int getLandID() {
        return landID;
    }

    public void setLandID(int landID) {
        this.landID = landID;
    }

    public int getLocationID() {
        return locationID;
    }

    public void setLocationID(int locationID) {
        this.locationID = locationID;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public String getNearByLandMarks() {
        return nearByLandMarks;
    }

    public void setNearByLandMarks(String nearByLandMarks) {
        this.nearByLandMarks = nearByLandMarks;
    }

    public int getOccupancyPermitID() {
        return occupancyPermitID;
    }

    public void setOccupancyPermitID(int occupancyPermitID) {
        this.occupancyPermitID = occupancyPermitID;
    }

    public int getPlanID() {
        return planID;
    }

    public void setPlanID(int planID) {
        this.planID = planID;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public int getPresentCost() {
        return presentCost;
    }

    public void setPresentCost(int presentCost) {
        this.presentCost = presentCost;
    }

    public int getPurchasedCost() {
        return purchasedCost;
    }

    public void setPurchasedCost(int purchasedCost) {
        this.purchasedCost = purchasedCost;
    }

    public Date getPurchasedDate() {
        return purchasedDate;
    }

    public void setPurchasedDate(Date purchasedDate) {
        this.purchasedDate = purchasedDate;
    }

    public Timestamp getStatusChangedDate() {
        return statusChangedDate;
    }

    public void setStatusChangedDate(Timestamp statusChangedDate) {
        this.statusChangedDate = statusChangedDate;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getStatusName() {
        LandStatusDAO statusDao = new LandStatusDAOImpl();
        return statusDao.getStatusName(this.statusCode);
    }
}
